import request from "../utils/request";
// 获取轮播图数据
export const getBanner = () => request({
    url: '/banner'
})

// 首页列表数据
export const getIndexList = () => request({
    url: '/indexlist'
})

// 首页详情信息
export const getDetail = (id) => request({
    url: '/indexlist/detail',
    data: {
        id
    }
})

// 热门城市
export const getHotCity = ()=> request({
    url: "/hot/city"
})

// 获取城市位置
export const getCityPosition = (latitude, longitude) => request({
    url: "/lbs/location",
    data: {
        latitude,
        longitude
    }
})

// 搜索模糊查询
export const searchInfo = (city,name) => request({
    url: "/foods/select",
    data: {
        city,
        name
    }
})